Release 10.1A: OpenEdge Development:
ADM Reference
callttparam.i
Although most AppServer calls require that no more than two or three temp-tables be passed between the AppServer and the client, some calls might require a larger number of temp-tables. For example, the Dynamics Repository Manger FetchObject call or a call to a SmartBusinessObject can require 20 or more temp-tables. In this instance, the
callttparam.iinclude file provides an easy way to include the temp-table handles required bycallstringtt.p. For more information, see the "callstringtt.p" section and the "calltables.i" section.Before using the
callttparam.ifile, you must define an array of handles. The following describes the parameters supplied in thecalttparam.ifile:ARRAYFIELDRequired parameter that names an extent 64 variable of data type handle.
MODEOptional parameter. One of INPUT, OUTPUT, or INPUT-OUTPUT. The default is INPUT-OUTPUT. The MODE applies to all 64 parameters. You cannot override the mode for individual parameters.
T01 to T64Optional parameter. An include file parameter that evaluates to a valid 4GL expression that follows the MODE. If not specified, the default is
“TABLE-HANDLE {&ARRAYFIELD}[subscript]”. This form lets you specify each table differently. For example, &T01 = “TABLEttCustomer”, &T02 - “TABLE-HANDLEhTTOrder”.
In Example A–6, the temp-tables ttCust, ttOrder, and a dynamic temp-table with the handle httTest are being passed and the remaining 61 are empty. The three temp-tables being passed are passed differently. Note the following in the example code:
- An array (hTT) of 64 handles is defined and used with the include file. The array is reset so that all elements are the unknown value. This is done so that when no temp-table is provided, nothing is sent.
- In the lines of code after the array is cleared, table 2 and table 3 are set to the value of the handles for the ttOrder and httTest temp-tables.
- In the call that uses the include file, the array variable is specified as the variable for the &ARRAYFIELD include parameter.
- The code automatically passes the array field with the other two temp-tables. The
&T01parameter passes thettCust temp-table using aTABLErather that aTABLE-HANDLEparameter. Therefore, the only include parameter is&T01.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |